cmake_minimum_required(VERSION 3.0)
project(HKVQCore)

set(WITH_HKVQCORE_TEST ON)
set(CMAKE_CXX_STANDARD 14)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

set(HKVQCORE_CMAKE_DIR ${PROJECT_SOURCE_DIR}/cmake)
set(HKVQCORE_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
set(HKVQCORE_SOURCES_DIR ${PROJECT_SOURCE_DIR}/src)
set(HKVQCORE_TEST_DIR ${PROJECT_SOURCE_DIR}/test)

include(${HKVQCORE_CMAKE_DIR}/FindPythonCmake.cmake)
include(${HKVQCORE_CMAKE_DIR}/FindPybind11Cmake.cmake)
include(${HKVQCORE_CMAKE_DIR}/FindOpenCVCmake.cmake)
include(${HKVQCORE_CMAKE_DIR}/FindHCNetSDKCmake.cmake)
include(${HKVQCORE_CMAKE_DIR}/LibraryCmake.cmake)
include(${HKVQCORE_CMAKE_DIR}/TestCmake.cmake)

file(COPY ${PROJECT_SOURCE_DIR}/3rdparty/opencv/build/x64/vc15/bin/ DESTINATION ${EXECUTABLE_OUTPUT_PATH})
file(COPY ${PROJECT_SOURCE_DIR}/3rdparty/HCNetSDK/lib/ DESTINATION ${EXECUTABLE_OUTPUT_PATH})
message(STATUS ${CMAKE_CXX_FLAGS})
message(STATUS ${CMAKE_C_FLAGS})
